package com.ruoyi.shop.systematic.merchant.service.impl;

import java.util.List;

import com.ruoyi.mall.common.domain.DtsMerchantApplication;
import com.ruoyi.mall.common.mapper.DtsMerchantApplicationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.shop.systematic.merchant.service.IDtsMerchantApplicationService;

/**
 * 商户申请审核Service业务层处理
 *
 * @author ruoyi
 * @date 2025-04-24
 */
@Service
public class DtsMerchantApplicationServiceImpl implements IDtsMerchantApplicationService
{
    @Autowired
    private DtsMerchantApplicationMapper dtsMerchantApplicationMapper;

    /**
     * 查询商户申请审核
     *
     * @param id 商户申请审核主键
     * @return 商户申请审核
     */
    @Override
    public DtsMerchantApplication selectDtsMerchantApplicationById(Long id)
    {
        return dtsMerchantApplicationMapper.selectDtsMerchantApplicationById(id);
    }

    /**
     * 查询商户申请审核列表
     *
     * @param dtsMerchantApplication 商户申请审核
     * @return 商户申请审核
     */
    @Override
    public List<DtsMerchantApplication> selectDtsMerchantApplicationList(DtsMerchantApplication dtsMerchantApplication)
    {
        return dtsMerchantApplicationMapper.selectDtsMerchantApplicationList(dtsMerchantApplication);
    }

    /**
     * 新增商户申请审核
     *
     * @param dtsMerchantApplication 商户申请审核
     * @return 结果
     */
    @Override
    public int insertDtsMerchantApplication(DtsMerchantApplication dtsMerchantApplication)
    {
        return dtsMerchantApplicationMapper.insertDtsMerchantApplication(dtsMerchantApplication);
    }

    @Override
    public int updateOpinion(DtsMerchantApplication dtsMerchantApplication) {
        return dtsMerchantApplicationMapper.updateopinion(dtsMerchantApplication);
    }

    /**
     * 修改商户申请审核
     *
     * @param dtsMerchantApplication 商户申请审核
     * @return 结果
     */
    @Override
    public int updateDtsMerchantApplication(DtsMerchantApplication dtsMerchantApplication)
    {
        return dtsMerchantApplicationMapper.updateDtsMerchantApplication(dtsMerchantApplication);
    }

    /**
     * 批量删除商户申请审核
     *
     * @param ids 需要删除的商户申请审核主键
     * @return 结果
     */
    @Override
    public int deleteDtsMerchantApplicationByIds(Long[] ids)
    {
        return dtsMerchantApplicationMapper.deleteDtsMerchantApplicationByIds(ids);
    }

    /**
     * 删除商户申请审核信息
     *
     * @param id 商户申请审核主键
     * @return 结果
     */
    @Override
    public int deleteDtsMerchantApplicationById(Long id)
    {
        return dtsMerchantApplicationMapper.deleteDtsMerchantApplicationById(id);
    }
}
